/***************************************************************************//**
 * @file
 * @brief custom_mi_config.h
 *
 ******************************************************************************/
#ifndef CUSTOM_MI_CONFIG_H
#define CUSTOM_MI_CONFIG_H

#include "product_info.h"

/**
 * @note Device firmware version. It'll be filled in Version character appended to
 * mijia ble libs version.
 */
#define DEVELOPER_VERSION       GWIN_PRODUCT_APP_DEVELOPER_VERSION
#define _DEVELOPER_VERSION      _GWIN_PRODUCT_APP_DEVELOPER_VERSION


/**
 * @note Device access method : BLE or Mesh.
 */
#ifndef MI_MESH_ENABLED
#define MI_MESH_ENABLED
#endif

/**
 * @note To support Secure Auth procedure MUST have mijia secure chip (MSC).
 * If device use Standard auth or Mesh Auth, it should be 0.
 *      NONE   : 0
 *      MJSC   : 1
 *      MJA1   : 2
 */
#ifndef HAVE_MSC
#define HAVE_MSC               0
#endif

/**
 * @note Device side has bind confirm button.
 */

#define HAVE_CONFIRM_BUTTON    0



/**
 * @note Device side has RESET button or not.
 */
#define HAVE_RESET_BUTTON      1


/**
 * @note Which OOB methods device used in authentication procedure.
 *       OOB_USE_NUMPAD_INPUT  : device has a numeric keypad to enter the pairing code.
 *       OOB_USE_QR_CODE_OUT   : device provided with a QR code label.
 *       OOB_USE_DISPLAT_OUT   : device displayed a six digit number.
 */
#define OOB_USE_NUMPAD_INPUT   0
#define OOB_USE_QR_CODE_OUT    0
#define OOB_USE_DISPLAT_OUT    0


/**
 * @note Use Mi BLE MCU OTA Protocol.
 */
#define USE_MIBLE_OTA		1

/**
 * @note 0x26000 only for SoftDevice S132 6.1.1
 *       0x13000 which indicate to this app image end address
 */
#define DFU_NVM_START          0

/**
 * @note 0x80000 indicate nRF5232 FLASH end address
 *       0x1000 for boot setting
 *       0x1000 for MBR setting
 *       0x2000 for bootloader
 *       0x3000 for app settings
 */
#define DFU_NVM_SIZE           0x40000


/**
 * @note Process mi scheduler in main loop (non-interrupt context).
 */
#define MI_SCHD_PROCESS_IN_MAIN_LOOP    0

/**
 * @note Max Timer.
 */
#define TIMER_MAX_NUM		12

/**
 * @note Max Task.
 */
#define TASK_MAX_NUM		15

#define POTP_BASE           0x00

/* DEBUG */
#ifndef DEBUG_MIBLE
#define DEBUG_MIBLE            0
#define TIME_PROFILE           0
#endif


#endif
